home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / bmg / bmg.h < prev    next >
Text File  |  1986-08-29  |  465b  |  23 lines

  1. /*
  2.  *    bmg.h ->    Boyer-Moore-Gosper search definitions
  3.  *
  4.  *    see bmg.c for documentation
  5.  */
  6.  
  7. #define    bmgMAXPAT    64        /*  max pattern length    */
  8. typedef struct
  9.     {
  10.     unsigned char    delta[256];        /*  ASCII only deltas    */
  11.     unsigned char    pat[bmgMAXPAT + 1];    /*  the pattern        */
  12.     unsigned char    ignore;            /*  ignore case flag    */
  13.     }
  14.     bmgARG;
  15.  
  16. void bmgCompile(char *, bmgARG *, int);
  17. int bmgSearch(char *, int, bmgARG *, int (*)());
  18.  
  19.  
  20. /*
  21.  *    END of bmg.h
  22.  */
  23.